<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>JS+CSS3实现计算器特效</title>
<link type="text/css" rel="stylesheet" href="css/datouwang.css" />
</head>
<body>
    <div id="calculator">
        <!-- Screen and clear key -->
        <div class="top">
            <span class="clear">C</span>
        <div class="screen"></div>
    </div>
    <div class="keys">
        <!-- operators and other keys -->
        <span>7</span>
        <span>8</span>
        <span>9</span>
        <span class="operator">+</span>
        <span>4</span>
        <span>5</span>
        <span>6</span>
        <span class="operator">-</span>
        <span>1</span>
        <span>2</span>
        <span>3</span>
        <span class="operator">÷</span>
        <span>0</span>
        <span>.</span>
        <span class="eval">=</span>
        <span class="operator">x</span>
        </div>
    </div>
    <script src="datouwang.js" type="text/javascript"></script>
</body>
</html>